Skip to content

Conversation

@Marca23
Copy link
Contributor

@Marca23 Marca23 commented Jan 7, 2026

Fixed: node consistency and log sync error

Implementation details

  • Switch destination endpoint only if the new endpoint has a higher block height to maintain node consistency.
  • Ignore invalid argument errors during log sync.

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@Marca23 Marca23 requested review from RogerKSI and tanut32039 January 7, 2026 10:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix node consistency issues when selecting EVM endpoints and suppress spurious log sync errors during application shutdown.

Key Changes:

  • Modified endpoint selection logic to prefer the currently selected endpoint when block heights are equal
  • Added syscall.EINVAL to the list of ignored errors during log sync operations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
relayer/chains/evm/client.go Updates endpoint selection logic to maintain consistency by preferring the currently selected endpoint when multiple endpoints have equal block heights
cmd/root.go Extends error handling in log sync to ignore EINVAL errors in addition to ENOTTY errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RogerKSI RogerKSI self-requested a review January 7, 2026 11:18
@Marca23 Marca23 requested a review from RogerKSI January 8, 2026 08:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RogerKSI RogerKSI requested a review from Kissadada January 14, 2026 09:12
@RogerKSI RogerKSI merged commit 341f99b into main Jan 19, 2026
8 checks passed
@RogerKSI RogerKSI deleted the fix-node-consistency branch January 19, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants